<html>
<head>
	<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>assets/css/teacher.css" /> 
	<meta charset="utf-8" />
<?php 
foreach($css_files as $file): ?>
	<link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
<?php endforeach; ?>
<?php foreach($js_files as $file): ?>
	<script src="<?php echo $file; ?>"></script>
<?php endforeach; ?>

</style>
</head>

<?
	function clear_html($x){
		$search = array("<p>","</p>");
		$x = str_replace($search, "", $x);
		return $x;
	}
?>

<body>
	<div id="menu">
		<?php $this->load->view('teacher/_menubar') ?>
	</div>
	<div id='subject_name'>
		<? echo isset($_SESSION['subject_name']) ? $_SESSION['subject_name'] : 'Bidang Studi Belum Ada' ?>
	</div>  
	<hr>
    <div>
		<? echo isset($chapter_name)? $chapter_name . '<Br>' : ''; ?> <br>
		<? if(isset($nis)) : ?>
			<div id="report_student">
				<table>
					<? echo isset($nis)? '<tr> <td> Nis </td> <td> : </td> <td> '. clear_html($nis) . '</td></tr>' : ''; ?>
					<? echo isset($name)? '<tr> <td> Nama </td> <td> : </td> <td> '. clear_html($name) . '</td></tr>': ''; ?>
					<? echo isset($test_name)? '<tr> <td> Nama Ujian </td> <td> : </td> <td> '. clear_html($test_name) . '</td></tr>' : ''; ?>
				</table>
			</div>
		<? endif ?>
		<?php echo $output; ?>
    </div>
	<div id="footer">
		Copyright &copy; 2013 Labkom STIKOM School Partnership (SSP) St. Louis 1
	</div>
</body>
</html>
